#include "agx.h"


void Agx::setModel(string _model)
{
    model=_model;
}

void Agx::setAi(string _ai)
{
    ai=_ai;
}

void Agx::setCuda_core(int _cuda_core)
{
    cuda_core=_cuda_core;
}

void Agx::setTensor_CORE(int _tendor_CORE)
{
    tensor_CORE=_tendor_CORE;
}

void Agx::setVidel_storage(int _videl_storage)
{
    video_storage=_videl_storage;
}

void Agx::setStorage(int _storage)
{
    storage=_storage;
}




void Agx::print ()
{
    cout<<"AGX套件"<<endl<<"a.型号："<<model<<endl<< "b.AI："<<ai<<endl<< "c.CUDA核心："<<cuda_core<<endl
    << "d.Tensor CORE："<<tensor_CORE<<endl<< "e.显存："<<video_storage<<endl<< "f.存储："<<storage<<endl;
}


void Agx::save (string path)
{
    ofstream ofs;// 创建流对象
    ofs.open(path, ios::out | ios::app);

    ofs<<"AGX套件"<<endl<<"a.型号："<<model<<endl<< "b.AI："<<ai<<endl<< "c.CUDA核心："<<cuda_core<<endl
    << "d.Tensor CORE："<<tensor_CORE<<endl<< "e.显存："<<video_storage<<endl<< "f.存储："<<storage<<endl;

    ofs.close();
}
